package com.hzhc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzhc.entity.CompanyInfo;
import com.hzhc.vo.CompanyInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 客户信息 Mapper 接口
 * </p>
 *
 * @author 功不唐捐
 * @since 2024-05-23
 */
public interface CompanyInfoMapper extends BaseMapper<CompanyInfo> {

    IPage<CompanyInfoVo> getList(Page<CompanyInfoVo> pagination, CompanyInfoVo vo) ;

    IPage<CompanyInfoVo> selectCompanyJson(Page<CompanyInfoVo> page, @Param("companyInfo") CompanyInfoVo vo);

    IPage<CompanyInfoVo> selectCarTeam(Page<CompanyInfoVo> pagination, @Param("vo") CompanyInfoVo vo);

    CompanyInfo getCompanyIdByName(@Param("companyName") String consigner);

    List<CompanyInfo> getDriverCompanyList();

    List<CompanyInfoVo> getCompanyList(CompanyInfoVo vo);

}
